<!doctype html>
<html>
  <head>
    <script type="text/javascript" src="../../Libraries/JSIL.Core.js"></script>
    <script type="text/javascript" src="../../Libraries/JSIL.Bootstrap.js"></script>
    <script type="text/javascript" src="../../Libraries/JSIL.IO.js"></script>
    <script type="text/javascript" src="../../Libraries/JSIL.Browser.js"></script>
    <script type="text/javascript" src="../../jsil.org/demos/RPG/mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.js"></script>
  </head>
  <body>
    <script type="text/javascript">
      JSIL.Initialize();
      
      loadBinaryFileAsync("../Data/FloatTest.bin", function (result, error) {
        var bytes = result;
        console.log(bytes);
        var stream = new System.IO.MemoryStream(bytes);
        console.log(stream);
        var binaryReader = new System.IO.BinaryReader(stream);
        console.log(binaryReader);
        var i1 = binaryReader.ReadInt32();
        var f1 = binaryReader.ReadSingle();
        var f2 = binaryReader.ReadSingle();
        var i2 = binaryReader.ReadInt32();
        console.log(i1 + ", " + f1 + ", " + f2 + ", " + i2);
      });
    </script>
  </body>
</html>